// AWTComponentEvent.h: interface for the AWTComponentEvent class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_AWTCOMPONENTEVENT_H__DC9C0D29_40B4_11D2_A3F1_006097A44215__INCLUDED_)
#define AFX_AWTCOMPONENTEVENT_H__DC9C0D29_40B4_11D2_A3F1_006097A44215__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#include "AWTEvent.h"
#include "AWTComponent.h"

#define COMPONENT_FIRST 100

class AWTComponent;

class AFX_EXT_CLASS AWTComponentEvent : public AWTEvent  
{
DECLARE_DYNAMIC(AWTComponentEvent)
public:
	AWTComponentEvent(AWTObject* source, int id);
	virtual ~AWTComponentEvent();

	AWTComponent* getComponent()
		{return (AWTComponent*)m_source;}

	enum {
		COMPONENT_MOVED = COMPONENT_FIRST,
		COMPONENT_RESIZED,
		COMPONENT_SHOWN,
		COMPONENT_HIDDEN};
};

#endif // !defined(AFX_AWTCOMPONENTEVENT_H__DC9C0D29_40B4_11D2_A3F1_006097A44215__INCLUDED_)
